package com.liliang.controller;


import com.liliang.entity.Supplier;
import com.liliang.service.ISupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liliang
 * @since 2021-11-04
 */
@Controller
@RequestMapping("/supplier")
public class SupplierController {

    //供应商表
    @Autowired
    ISupplierService iss;

    @ResponseBody
    @GetMapping("/findbyMATERIAL_NUM")
    public List<Supplier> findbyMATERIAL_NUM(String sb){
        return iss.findSupplierByMATERIAL_NUM(sb);
    }
}

